how to use an api